class UserInfo {
  String id;
  String avatar;
  String userName;
  String phoneNumber;

  UserInfo({
    required this.userName,
    required this.avatar,
    required this.id,
    required this.phoneNumber,
  });

  factory UserInfo.fromJson(Map<String, dynamic> json) {
    return UserInfo(
        userName: json["userName"],
        avatar: json["avatar"],
        id: json["id"],
        phoneNumber: json["phoneNumber"]);
  }
}
